home *** CD-ROM | disk | FTP | other *** search
- ;/*
- sc RESOPT DATA=NEAR UCHAR CONSTLIB STREQ NMINC STRMERGE NOSTKCHK NOSTDIO OPTIMIZE OPTSIZE IGNORE=73 BlackScreen.c
- slink from LIB:c.o BlackScreen.o to //Clients/BlackScreen LIB LIB:sc.lib LIB:amiga.lib /lib/client.lib SC SD STRIPDEBUG NOICONS
- delete blackscreen.o
- quit
-
- BlackScreen 1.2 (Client for BServer)
-
- Copyright © 1994-1995 Stefano Reksten of 3AM - The Three Amigos!!!
- All rights reserved.
- */
-
- #include <exec/types.h>
- #include <exec/memory.h>
-
- #include <proto/exec.h>
- #include <proto/intuition.h>
- #include <proto/graphics.h>
-
- #include "/include/client.h"
-
- char *ver = "$VER: BlackScreen 1.2 "__AMIGADATE__;
-
- struct IntuitionBase *IntuitionBase;
- struct GfxBase *GfxBase;
- struct DisplayIDInformation *dinfo;
-
- void Blank( void )
- {
- struct Screen *scr;
-
- if ( scr = OpenScreenTags( NULL,
- SA_Depth, 0,
- SA_DisplayID, DISPLAYID( dinfo ),
- TAG_END ) )
- {
- register struct ViewPort *vp = &(scr->ViewPort);
-
- SpritesOff();
-
- SetRGB4( vp, 0, 0, 0, 0 );
-
- (void)WaitServerCommand();
- CloseScreen( scr );
- SpritesOn();
- }
- else
- SendClientMsg( ACTION_FAILED );
- }
-
-
- void __main( char *line )
- {
- if ( IntuitionBase = (struct IntuitionBase *)OpenLibrary( "intuition.library", 37L ) )
- {
- if ( GfxBase = (struct GfxBase *)OpenLibrary( "graphics.library", 37L ) )
- {
- if ( dinfo = OpenCommunication() )
- {
- Blank();
- CloseCommunication( dinfo );
- }
- CloseLibrary( (struct Library *)GfxBase );
- }
- CloseLibrary( (struct Library *)IntuitionBase );
- }
- }
-